package com.data
{
	[Bindable]
	public class IdFilterData extends FilterData
	{
		public var curVal:Number;
		
		private var birthField:String;
		private var deathField:String;
		
		public function IdFilterData(fieldName:String, birthField:String, deathField:String)
		{
			super(fieldName, 1);
			this.birthField = birthField;
			this.deathField = deathField;
		}
		
		public override function isOk(ind:Object):Boolean
		{
			if (selected == false) return true;
			return ind[birthField] <= curVal && ind[deathField] > curVal;	
		}
	}
}